Skip to content

DOC: Add tuple description to allowed inputs for iloc #47799 #47989

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 8, 2022

Conversation

pratikpatel2512
Copy link
Contributor

@pratikpatel2512 pratikpatel2512 commented Aug 6, 2022

@@ -155,6 +155,8 @@ def iloc(self) -> _iLocIndexer:
DataFrame) and that returns valid output for indexing (one of the above).
This is useful in method chains, when you don't have a reference to the
calling object, but would like to base your selection on some value.
- A tuple of row and column indexes, e.g. ``0, 1`` or ``[1, 2], [2, 5]`` or
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add that the tuple elements consist of one of the above mentioned ones instead of given examples

Copy link
Contributor

@attack68 attack68 Aug 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also I would add the parentheses to make it explit they are tuples. e,g, ([1,2], [2,5]).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Acknowledged the comments and updated the statement.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we suppose to run around 30 some checks for document updates?

@mroeschke mroeschke added this to the 1.5 milestone Aug 8, 2022
@mroeschke mroeschke added Docs Indexing Related to indexing on series/frames, not to indexes themselves labels Aug 8, 2022
@mroeschke mroeschke merged commit e7afa4b into pandas-dev:main Aug 8, 2022
@mroeschke
Copy link
Member

Thanks @pratikpatel2512

noatamir pushed a commit to noatamir/pandas that referenced this pull request Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Docs Indexing Related to indexing on series/frames, not to indexes themselves
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DOC: iloc docs should indicate a tuple is valid
4 participants